﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>EnvMult</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8"><LINK 
href="../css/commands.css" type=text/css rel=stylesheet><LINK media=print 
href="../css/print.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<H1>EnvMult</H1>


<P>将<A href="../Variables.htm">变量</A>设置为它自身乘以给定的值。同义于: var *= value</P>
<P class=CommandSyntax>EnvMult, Var, Value </P>
<h3>参数 </h3>
<TABLE borderColor=#c0c0c0 cellSpacing=0 cellPadding=3 width="100%" border=1>
  <TBODY>
  <TR>
    <TD width="15%">Var</TD>
    <TD width="85%">要操作的<A href="../Variables.htm">变量</A>名称。</TD></TR>
  <TR>
    <TD>Value</TD>
    <TD>任何整数、浮点数或者<A 
href="../Variables.htm#Expressions">表达式</A>。</TD></TR></TBODY></TABLE>
<h3>注意</h3>
<P>此命令等同于这种速记形式: Var *= Value</P>
<P>如果 <EM>Var</EM> 或 <EM>Value</EM> 为空或者不以数字开头，那么出于计算的目的它将被视为 0 (除了在一个表达式<SPAN 
style="FONT-WEIGHT: bold">内部</SPAN>使用时，例如 <EM>Var := X *= Y</EM>)。</P>
<P>如果 <SPAN style="FONT-STYLE: italic">Var</SPAN> 或 <SPAN 
style="FONT-STYLE: italic">Value</SPAN> 包含小数点，那么最后的结果将是一个浮点数，其格式可由 <A 
href="SetFormat.htm">SetFormat</A> 命令设置。</P>
<h3>相关命令</h3>
<P><A href="EnvAdd.htm">EnvAdd</A>, <A href="EnvSub.htm">EnvSub</A>, <A 
href="EnvDiv.htm">EnvDiv</A>, <A href="SetFormat.htm">SetFormat</A>, <A 
href="../Variables.htm#Expressions">Expressions</A>, <A href="IfIs.htm">If var 
is [not] type</A>, <A href="SetEnv.htm">SetEnv</A>, <A 
href="Transform.htm">bitwise operations (Transform)</A></P>
<h3>示例</h3><PRE class=NoIndent>EnvMult, MyCount, 2 <BR>MyCount *= 2  <SPAN class=CodeCom>;等同于上面的命令</SPAN></PRE>
</BODY></HTML>
